package com.example.demo.repository;

import com.example.demo.entity.Organization;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ClazzRepository extends JpaRepository<Organization, Long> {
    // 查找所有类型为 clazz 的组织（即所有班级）
    List<Organization> findByType(Organization.OrgType type);
}
